package com.fallback;

import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wbzs,
 * @date 2022/10/23,
 * @time 18:32,
 */
@RestController
public class Myerror implements ErrorController {

    @RequestMapping("/error")
    public String geterror(){

        return "我们出错了";
    }


    @Override
    public String getErrorPath() {
        return "/error";
    }
}
